package com.carl.action;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


@Aspect @Component 
public class SysLogAop {
	
	@Pointcut("execution(* com.carl.action..*.*Action(..))")
	public void actionMethod() { }
	
		
	
	@Around("actionMethod()")
	public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
		
		Object result = pjp.proceed();
		
		return result;
	}
}
